#include<bits/stdc++.h>
using namespace std;
int main(){
	string a;
	int a1=0,a2=0;
	int b1[3500]={0};
	int b2[3500]={0};
	int i;
	int j=0;
	int p=0;
	while(cin>>a){
		for(i=0;a[i]!='\0';i++){
			if(a[i]=='W'){
				a1++;
				b1[j]++;
			}
			else if(a[i]=='L'){
				a2++;
				b2[j]++;
			}
			else if(a[i]=='E'){
				cout<<a1<<':'<<a2<<endl;
				cout<<endl;
				p=1;
				break;			
			};
			if((a1>=11&&a1-a2>=2)||(a2>=11&&a2-a1>=2)){
				cout<<a1<<':'<<a2<<endl;
				a1=0;
				a2=0;
			};
			if((b1[j]>=21&&b1[j]-b2[j]>=2)||(b2[j]>=21&&b2[j]-b1[j]>=2)){
				j++;
			}
		};
		if(p==1) break;
	};
	for(i=0;i<=j;i++){
		if(i<j){
			cout<<b1[i]<<':'<<b2[i]<<endl;
		};
		if(i==j){
			cout<<b1[j]<<':'<<b2[j];
		};
	};
	return 0;
}
